package com.chixing.day08_interface;
/*
* 可列举的有限的类对象
* */
public class Season {
    //设计一个季节类Season，只能实例化4个对象 （春夏秋冬季节）
    //让其在类加载的时候就有
   public static final Season SPRING = new Season("春");
    public static final Season SUMMER = new Season("夏");
    public static final Season AUTUMN = new Season("秋");
    public static final Season WINTER = new Season("冬");

    private String name;
    private Season(String name){
        this.name=name;
    }
    private Season(){
        

    }

}
